.franchise-calculator-popup{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
}
.franchise-calculator-popup-wrapper{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 10px 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.franchise-calculator-popup .close-button img{
    width: 100%;
    filter: grayscale(1);
}
.franchise-calculator-popup .close-button:hover img{
    filter: grayscale(0);
}
.franchise-calculator-popup .close-button{
    position: absolute;
    width: 20px;
    height: 20px;
    right: 24px;
    top: 24px;
    cursor: pointer;
}
.franchise-calculator{
    width: 1404px;
    padding: 64px;
    background: #FFFFFF;
    border-radius: 20px;
    position: relative;
    margin: auto;
}
.franchise-calculator > h4{
    font-weight: 500;
    font-size: 26px;
    line-height: 120%;
    color: #0B1F35;
    margin: 0 0 64px 0;
}
.calculator-wrapper{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.calculator-wrapper .preview{
    width: 475px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FEFF 100%);
    border: 1px solid #D1D1D1;
    border-radius: 20px;
    padding: 48px;
}
.calculator-wrapper .preview h5{
    font-weight: 700;
    font-size: 25px;
    line-height: 120%;
    color: #0B1F35;
    margin: 0 0 48px 0;
}
.calculator-wrapper .preview p{
    font-weight: 400;
    font-size: 26px;
    line-height: 120%;
    color: #0B1F35;
    margin: 0 0 16px 0;
}
.calculator-wrapper .preview .lump-sum,
.calculator-wrapper .preview .lump-sum span,
.calculator-wrapper .preview .invest-sum,
.calculator-wrapper .preview .invest-sum span{
    font-weight: 700;
    font-size: 42px;
    line-height: 120%;
    color: #03A0E3;
    margin: 0 0 24px 0;
}

.calculator-wrapper .preview hr{
    background: #D1D1D1;
}
.calculator-wrapper .preview .button-request{
    width: 379px;
    margin: 56px auto 0 auto;
}
.calculator{
    width: 670px;
}
.calculator p{
    font-size: 20px;
    line-height: 120%;
    color: #0B1F35;
    margin: 0 0 24px 0;
}
p.population-select-value{
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    color: #0B1F35;
    margin: 0 0 16px 0;
}
.calculator p strong{
    font-weight: 700;
}
.calculator .range-package-slide .ui-slider-range{
    background: #F50882;
    cursor: pointer;
}
.calculator .range-package-slide{
    border: none;
    background: #C4C4C4;
    cursor: pointer;
}
.calculator .ui-corner-all{
    border-radius: 0;
}
.calculator .ui-slider-handle{
    border-radius: 50%;
    width: 26px;
    height: 26px;
    border: 4px solid #F50882;
    background: white;
}
.calculator .ui-slider-handle:hover, .calculator .ui-slider-handle.ui-state-active{
    background: #FA83C0;
}
.calculator .ui-slider-horizontal{
    height: 5px;
}

.calculator .ui-slider-horizontal .ui-slider-handle {
    top: 50%;
    margin-left: 0;
    transform: translate(-50%, -50%);
    cursor: pointer;
    outline: none;
}

.calculator .range-package-scale{
    width: 100%;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    position: relative;
    height: 35px;
}
.calculator .range-package-scale > li{
    position: absolute;
    bottom: 0;
    cursor: pointer;
    user-select: none;
}
.calculator .range-package-scale > li span{
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #6D7986;
}
.calculator .range-package-scale > li:before{
    content: "";
    position: absolute;
    width: 8px;
    height: 5px;
    background: #F50882;
    top: -13px;
    pointer-events: none;
}
.calculator .range-package-scale > li:last-child:before{
    right: 0;
}
.calculator .range-package-scale > li:nth-child(1){
    left: 0;
}
.calculator .range-package-scale > li:nth-child(2){
    left: 33.33%;
}
.calculator .range-package-scale > li:nth-child(3){
    left: 66.66%;
}
.calculator .range-package-scale > li:nth-child(4){
    right: 0;
}
.calculator .population{
    margin-bottom: 64px;
}
.calculator .subject{
    margin-bottom: 40px;
}
.calculator .subjects-list-wrapper{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.calculator .subtitle-subjects{
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: #6D7986;
    margin: 0 0 16px 0;
}

.calculator .calculator-checkbox-wrapper label{
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    color: #0B1F35;
    cursor: pointer;
    position: relative;
    user-select: none;
    padding-left: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}
.calculator .calculator-checkbox-wrapper label:before{
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 1px solid #66c5ee;
    border-radius: 5px;
    left: 0;
}
.calculator .calculator-checkbox-wrapper label:hover:before{
    background: #ddf5ff;
    border: 1px solid #66c5ee;
}
.calculator .calculator-checkbox-wrapper input[type="checkbox"]:checked+label::before {
    background-image: url("/img/franchise/check.png");
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: center center;
}
.calculator .calculator-checkbox-wrapper{
    margin-bottom: 24px;
    position: relative;
}
.calculator .calculator-checkbox-wrapper input[type="checkbox"]{
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.calculator .calculator-radio-wrapper input[type="radio"]{
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.calculator .calculator-radio-wrapper label{
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    color: #009EE3;
    padding: 10px 20px;
    background: #E2EFFB;
    border-radius: 30px;
    cursor: pointer;
    user-select: none;
}
.calculator .calculator-radio-wrapper label:hover{
    background: #C4DEF6;
}
.calculator .calculator-radio-wrapper{
    margin-right: 16px;
}
.calculator .classes-list-wrapper{
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.calculator .calculator-radio-wrapper input[type="radio"]:checked+label{
    background: #009EE3;
    color: white;
}
@media (min-width: 768px) and (max-width: 1200px) {
    .franchise-calculator{
        width: 970px;
    }
    .calculator-wrapper{
        flex-direction: column;
    }
    .calculator-wrapper .preview{
        margin-top: 50px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .franchise-calculator {
        width: 720px;
    }
    .calculator {
        width: 590px;
    }
}
@media (max-width: 767px) {
    .franchise-calculator-popup-wrapper{
        padding: 0;
        background: white;
    }
    .franchise-calculator{
        width: 100%;
        padding: 64px 20px;
        border-radius: 0;
        max-width: 360px;
    }
    .calculator-wrapper{
        flex-direction: column;
    }
    .franchise-calculator-popup .close-button{
        right: 20px;
        top: 20px;
    }
    .franchise-calculator > h4{
        font-size: 24px;
        line-height: 140%;
        margin: 0 0 48px 0;
        font-weight: 700;
    }
    .calculator{
        width: 100%;
    }
    .calculator p{
        line-height: 150%;
    }
    p.population-select-value{
        background: rgba(196, 196, 196, 0.3);
        margin: 0;
        padding: 18px 0 30px 10px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        font-weight: 500;
        font-size: 14px;
        line-height: 120%;
    }
    .calculator .ui-slider-handle{
        width: 20px;
        height: 20px;
        border: 3px solid #F50882;
    }
    .calculator .ui-slider-horizontal{
        height: 3px;
    }
    .calculator .range-package-scale > li:before{
        display: none;
    }
    .calculator .range-package-scale > li{
        display: none;
    }
    .calculator .range-package-scale > li:first-child, .calculator .range-package-scale > li:last-child{
        display: block;
    }
    .calculator .range-package-scale > li span{
        font-size: 12px;
        line-height: 150%;
    }
    .calculator .range-package-scale{
        height: 30px;
    }
    .calculator .population{
        margin-bottom: 48px;
    }
    .calculator .subjects-list-wrapper{
        flex-direction: column;
    }
    .calculator .subtitle-subjects{
        font-size: 16px;
    }
    .calculator .calculator-checkbox-wrapper label{
        font-size: 16px;
    }
    .calculator .calculator-radio-wrapper{
        margin-right: 4px;
    }
    .calculator .calculator-radio-wrapper label{
        font-size: 14px;
    }
    .calculator-wrapper .preview{
        width: 320px;
        padding: 36px 20px;
        margin-top: 64px;
        text-align: center;
    }
    .calculator-wrapper .preview .button-request{
        width: 280px;
        margin: 46px auto 0 auto;
    }
    .calculator-wrapper .preview h5{
        font-size: 20px;
        line-height: 120%;
        margin: 0 0 24px 0;
    }
    .calculator-wrapper .preview p{
        font-size: 16px;
        line-height: 120%;
        margin: 0 0 12px 0;
    }
    .calculator-wrapper .preview .lump-sum, .calculator-wrapper .preview .lump-sum span, .calculator-wrapper .preview .invest-sum, .calculator-wrapper .preview .invest-sum span{
        font-size: 36px;
    }
}